package com.yl.chainStore.common

class LockObjects {

	companion object {

		private val  warehouseLock: MutableMap<String,Any> = mutableMapOf()


		/**
		 * 仓库锁
		 * companyId_deptId
		 */
		fun getWarehouseLock(companyDeptId:String):Any{
			val get = warehouseLock[companyDeptId]
			if(get == null){
				val any = Any()
				warehouseLock[companyDeptId] = any
				return any
			}
			return get
		}
	}



}
